
#if defined(PAGE_H)

const unsigned char Home_bmp[128] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xE0,0xE0,0xE0,0xC0,0x80,0x00,0xC0,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF8,0xF0,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x03,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
const unsigned char Flag[128] =
{
0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0xC0,0x40,0x40,0xE0,0xE0,0x30,0x30,0xD0,0xD0,0x30,0x30,0xE0,0x00,0x80,0x80,0x80,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x99,0x99,0x66,0x66,0x99,0xCC,0x33,0xB3,0xCC,0xCC,0xB3,0xB3,0xFF,0xCD,0xCC,0x33,0x99,0x66,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x0D,0x05,0x02,0x02,0x03,0x01,0x01,0x00,0x00,0x00,0x07,0x0E,0x0F,0x0C,0x04,0x07,0x05,0x02,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
const unsigned char Cup[128] =
{
0x00,0x00,0x00,0x00,0x00,0xC0,0x60,0x20,0x20,0x20,0x40,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0x40,0x20,0x20,0x20,0x60,0xC0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x07,0x0C,0x18,0x30,0x60,0xC0,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xC0,0x60,0x30,0x18,0x0C,0x07,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x83,0x87,0xFF,0xFF,0xFF,0xFF,0x87,0x83,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x06,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x06,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
const unsigned char Chrono[128] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0xE0,0xE0,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0x18,0x0C,0x06,0x06,0x06,0x03,0x03,0x03,0x83,0xC6,0xE6,0x66,0x0C,0x18,0xF0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x7F,0xF0,0x80,0x00,0x00,0x00,0x00,0x00,0x06,0x07,0x03,0x01,0x00,0x00,0x00,0x80,0xF0,0x7F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x06,0x06,0x06,0x0C,0x0C,0x0C,0x0C,0x06,0x06,0x06,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
const unsigned char Helmet[128] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0xE0,0xE0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xE0,0xE0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xE0,0x38,0x0E,0x0F,0x1F,0x1F,0x3F,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x3F,0x1F,0x1F,0x1F,0x3F,0xFF,0xFF,0xFC,0xE0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xFE,0xC1,0xC0,0xE0,0xE0,0xE0,0xF0,0xF0,0xF8,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xFC,0xFC,0xFC,0xFE,0xFF,0xFF,0x7F,0x1F,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x03,0x07,0x07,0x07,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x07,0x07,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
const unsigned char Settings[128] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0xA0,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0x40,0xC0,0xC0,0xC0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x1F,0x31,0x62,0x42,0x41,0x60,0x50,0xC8,0x84,0x0F,0x98,0xF0,0xE0,0xB0,0x18,0x8D,0xC7,0x6F,0x39,0x19,0x3E,0x4C,0x48,0x30,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0xFF,0x7F,0x3F,0x1F,0x3F,0x67,0xC3,0x83,0x06,0x0C,0x18,0x30,0x60,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0x07,0x0F,0x0F,0x07,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x06,0x04,0x04,0x06,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
};
const unsigned char Memory[128] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xC0,0xDF,0xDF,0xDF,0xDF,0xDF,0xD0,0xD7,0xD7,0xC0,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x00,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
const unsigned char Kart[120] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0x40,0x60,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xE0,0xE0,0xC0,0x8F,0x3F,0xF0,0xE0,0xE0,0xEF,0x6F,0x2F,0x2F,0x3F,0x1F,0x07,0x00,0x20,0x10,0x18,0x34,0x60,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x38,0x7C,0xC6,0x83,0x99,0x9D,0x91,0xC1,0x62,0x3C,0x71,0x5B,0x4F,0x41,0x41,0x43,0x43,0x43,0x43,0x43,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x46,0x46,0x7F,0x3F,0x3E,0x32,0x43,0x49,0x5D,0x49,0x63,0x36,0x1C,
};
#endif
void InitDisplay(void);
void DisplayOFF(void);
void LoadingPage(unsigned short Progress);
void DisplaySavingScreen(void);
char MainPage(unsigned short *us_Events,unsigned short rpm,unsigned char temp,unsigned short Vbatt,unsigned char l_uc_CurrentLap,unsigned short l_us_CurrentChrono[MAX_LAPS][MAX_SECTORS]);
char MenuPage(unsigned short *us_Events);
char SettingsPage(unsigned short *us_Events);
char ChronoPage(unsigned short *us_Events,unsigned char l_uc_CurrentLap,unsigned short l_us_CurrentChrono[MAX_LAPS][MAX_SECTORS],unsigned short l_us_BestRealChrono[3]);
char DriverPage(unsigned short *us_Events);
char RecordPage(unsigned short *us_Events);
char MemoryPage(unsigned short *us_Events);
char HistoChronoPage(unsigned short *us_Events,char * FileName);
char PistePage(unsigned short *us_Events);

